const directives = {};
// 小型组件引入
const smallUI = import.meta.glob("./*.js", { eager: true });
for (const key in smallUI) {
    const element = smallUI[key];
    const _key = key
        .replace(/\.js/g, "")
        .replace(/\.\.\/directive\//g, "")
        .replace(/\.\//g, "");
    directives[_key] = element.default;
}
export default {
    install: (app) => {
        for (const key in directives) {
            const element = directives[key];
            app.directive(key, element);
        }
    },
};
